import request from '@/utils/request'

export default {
  updateUserId(params){
    return request({
      url:'/handover/updateUserId',
      method:'post',
      params
    })
  },
  exitInfo(params) {
    return request({
      url: '/user/partnerFind/exitInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  justiceInfo(params) {
    return request({
      url: '/user/partnerFind/justiceInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  peerInfo(params) {
    return request({
      url: '/user/partnerFind/peerInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  orgInfo(params) {
    return request({
      url: '/user/partnerFind/orgInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  assetInf(params) {
    return request({
      url: '/user/partnerFind/assetInf',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  fundInfo(params) {
    return request({
      url: '/user/partnerFind/fundInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },

  exportJusticeInfo(params) {
    return request({
      url: '/crm/crmexport/exportJusticeInfo',
      method: 'post',
      data:params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    })
  },
  exportPeerInfo(params) {
    return request({
      url: '/crm/crmexport/exportPeerInfo',
      method: 'post',
      data:params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    })
  },
  exportOrgInfo(params) {
    return request({
      url: '/crm/crmexport/exportOrgInfo',
      method: 'post',
      data:params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    })
  },
  exportFundInfo(params) {
    return request({
      url: '/crm/crmexport/exportFundInfo',
      method: 'post',
      data:params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    })
  },
  exportExitInfo(params) {
    return request({
      url: '/crm/crmexport/exportExitInfo',
      method: 'post',
      data:params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    })
  },
  exportAssetInf(params) {
    return request({
      url: '/crm/crmexport/exportAssetInf',
      method: 'post',
      data:params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      responseType: 'blob'
    })
  },
  updatePass(params) {
    return request({
      url: '/admin/sysUser/password',
      method: 'post',
      params,
    })
  },

  updateHandover(params) {
    return request({
      url: '/handover/updateHandover',
      method: 'post',
      params,
    })
  },
  TransferList() {
    return request({
      url: '/handover/allName',
      method: 'post',
    })
  },
  findUserList(params) {
    return request({
      url: '/user/select/personals',
      method: 'post',
      params
    })
  },
  findDepartmentUser() {
    return request({
      url: '/admin/sysUser/findDepartmentUser',
      method: 'post',
    })
  },
  homeList() {
    return request({
      url: '/home/homeList',
      method: 'post',
    })
  },
  findFromUserID() {
    return request({
      url: '/admin/sysUser/findFromUserID',
      method: 'post',
    })
  },
  countCreateId() {
    return request({
      url: '/user/select/countCreateId',
      method: 'post',
    })
  },
  path() {
    return request({
      url: '/user/partner/path',
      method: 'post',
    })
  },
  getCreateUserId() {
    return request({
      url: '/user/partner/createId',
      method: 'get',
    })
  },
  findAssetInf(params) {
    return request({
      url: '/user/partner/findAssetInf',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  findOrgInfo(params) {
    return request({
      url: '/user/select/findOrgInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  findPeerInfo(params) {
    return request({
      url: '/user/select/findPeerInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  findFundInfo(params) {
    return request({
      url: '/user/partner/findFundInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  findExitInfo(params) {
    return request({
      url: '/user/select/findExitInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  findJusticeInfo(params) {
    return request({
      url: '/user/select/findJusticeInfo',
      method: 'post',
      data: params,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      }
    })
  },
  weixinNumber(params) {
    return request({
      url: '/user/select/weixinNumber',
      method: 'post',
      params
    })
  },
  matchNumber(params) {
    return request({
      url: '/user/select/matchNumber',
      method: 'post',
      params
    })
  },
  findByNameTelHide(params) {
    return request({
      url: '/user/select/findByNameTelHide',
      method: 'post',
      params
    })
  },
  findAll(params) {
    return request({
      url: '/user/partner/findByPartType',
      method: 'post',
      params
    })
  },
  get(params) {
    return request({
      url: '/user/partner/get',
      method: 'post',
      params
    })
  },
  add(data) {
    return request({
      url: '/user/partner/add',
      method: 'post',
      data
    })
  },

  editInit(params) {
    return request({
      url: '/user/partner/editInit',
      method: 'get',
      params
    })
  },
  findInit(params) {
    return request({
      url: '/user/partner/findInit',
      method: 'get',
      params
    })
  },
  addInit1() {
    return request({
      url: '/user/partner/addInit1',
      method: 'get',
    })
  },
  editInit1(params) {
    return request({
      url: '/user/partner/editInit1',
      method: 'get',
      params
    })
  },
  findInit1(params) {
    return request({
      url: '/user/partner/findInit1',
      method: 'get',
      params
    })
  },
  update(data) {
    return request({
      url: '/user/partner/update',
      method: 'post',
      data
    })
  },
  remove(params) {
    return request({
      url: '/user/partner/remove',
      method: 'post',
      params
    })
  },
  reductions(params) {
    return request({
      url: '/user/partner/reductions',
      method: 'post',
      params
    })
  },
}
